home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / Tool Chest / Development Platforms / MPW Related / MPW Interfaces / CIncludes / ShutDown.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-17  |  1.0 KB  |  47 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        ShutDown.h
  3.  
  4.     Copyright:    © 1983-1993 by Apple Computer, Inc.
  5.                 All rights reserved.
  6.  
  7.     Version:    System 7.1 for ETO #11
  8.     Created:    Tuesday, March 30, 1993 18:00
  9.  
  10. */
  11.  
  12. #ifndef __SHUTDOWN__
  13. #define __SHUTDOWN__
  14.  
  15. #ifndef __TYPES__
  16. #include <Types.h>
  17. #endif
  18.  
  19.  
  20. enum {
  21.  
  22.     sdOnPowerOff = 1,       /*call procedure before power off.*/
  23.     sdOnRestart = 2,        /*call procedure before restart.*/
  24.     sdOnUnmount = 4,        /*call procedure before unmounting.*/
  25.     sdOnDrivers = 8,        /*call procedure before closing drivers.*/
  26.     sdRestartOrPower = 3    /*call before either power off or restart.*/
  27. };
  28.  
  29. typedef pascal void (*ShutDwnProcPtr)(void);
  30.  
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34. pascal void ShutDwnPower(void)
  35.     = {0x3F3C,0x0001,0xA895}; 
  36. pascal void ShutDwnStart(void)
  37.     = {0x3F3C,0x0002,0xA895}; 
  38. pascal void ShutDwnInstall(ShutDwnProcPtr shutDownProc,short flags)
  39.     = {0x3F3C,0x0003,0xA895}; 
  40. pascal void ShutDwnRemove(ShutDwnProcPtr shutDownProc)
  41.     = {0x3F3C,0x0004,0xA895}; 
  42. #ifdef __cplusplus
  43. }
  44. #endif
  45.  
  46. #endif
  47.